<?php

namespace App\Services;

use App\Models\ClassMember;

class ClassService
{
    // 判断账号是否存在 并返回user_id
    public static function IsExistClassMember($class_id, $student_id){
        $classMember = ClassMember::where([
            "class_id" => $class_id,
            "student_id" => $student_id
        ])->first();
        return $classMember;
    }
}
